package com.itheima;

/*
* 第一次作业要求,创建item类并实例化出3件具体物品
* */
public class Item {
    public String name;
    public int price;
    public Item(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public static void main(String[] args) {

        Item[] item = new Item[3];
        Item goods1 = new Item("血瓶",50);
        Item goods2 = new Item("草鞋",300);
        Item goods3 = new Item("长剑",350);
    }
}
